import time

print(time.time())  # 时间戳

t = time.localtime()  # 结构化时间
print(t)
print(t.tm_year,type(t.tm_year))

s = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())
print(s)

from my_package import my_tools

s = my_tools.get_time()
print(s)